package com.atguigu.eduorder.client;

import com.atguigu.commonutils.vo.CourseWebVoOrder;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;

/**
 * Created with IntelliJ IDEA.
 *
 * @Author: shy
 * @Date: 2021/06/21/9:38
 * @Description:
 */
@Component
@FeignClient(value = "service-edu")
public interface EduClient {
    //根据课程id查询课程信息
    @PostMapping("/eduservice/courseFront/getCourseInfoByIdOrder/{id}")
    public CourseWebVoOrder getCourseInfoByIdOrder(@PathVariable("id") String id);
}

